import request from '@/utils/request'

// 查询分区水平衡修正列表
export function listRegionBalanceFix(query) {
  return request({
    url: '/region/regionBalanceFix/list',
    method: 'get',
    params: query
  })
}

export function getZoneWaterBalance(query) {
  return request({
    url: '/region/regionBalanceFix/getZoneWaterBalance',
    method: 'get',
    params: query
  })
}

export function doCalculateZoneWaterBalanceFix(data) {
  return request({
    url: '/region/regionBalanceFix/doCalculateZoneWaterBalanceFix',
    method: 'post',
    data: data
  })
}

// 查询分区水平衡修正详细
export function getRegionBalanceFix(ID) {
  return request({
    url: '/region/regionBalanceFix/' + ID,
    method: 'get'
  })
}

// 新增分区水平衡修正
export function addRegionBalanceFix(data) {
  return request({
    url: '/region/regionBalanceFix',
    method: 'post',
    data: data
  })
}

// 修改分区水平衡修正
export function updateRegionBalanceFix(data) {
  return request({
    url: '/region/regionBalanceFix',
    method: 'put',
    data: data
  })
}

// 删除分区水平衡修正
export function delRegionBalanceFix(ID) {
  return request({
    url: '/region/regionBalanceFix/' + ID,
    method: 'delete'
  })
}
